package com.yuyou.tas.feedback.service;

import com.yuyou.tas.service.api.feedback.entity.FeedbackTeacherPraise;

import java.util.List;


public interface IFeedbackTeacherPraiseService {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackTeacherPraise record);

    FeedbackTeacherPraise selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackTeacherPraise record);

    /**
     * 获取班级反馈里全部点赞数据
     * @param feedbackClassId
     * @return
     */
    List<FeedbackTeacherPraise> findByFeedbackClassId(Long feedbackClassId);

    /**
     * 根据班级反馈id 统计点赞数
     * @param feedbackClassId
     * @return
     */
    Long countPraiseByFeedbackClassId(Long feedbackClassId);

    /**
     * 根据班级反馈id 和用户id 统计反馈数
     * @param feedbackClassId
     * @param userId
     * @return
     */
    Long countPraiseByFeedbackClassIdUserId(Long feedbackClassId, Long userId);
}